package hut.lvming.service;

import com.github.pagehelper.Page;
import hut.lvming.domain.Book;
import hut.lvming.domain.User;
import hut.lvming.entity.PageResult;

public interface BookService {
    PageResult selectNewBooks(Integer pageNum,Integer pageSize);

    Book findById(String id);

    Integer borrowBopok(Book book);

    PageResult search(Book book,Integer pageNum,Integer pageSize);

    Integer addBook(Book book);

    Integer editBook(Book book);

    PageResult searchBorrowed(Book book, User user,Integer pageNum,Integer pageSize);

    boolean returnBook(String id, User user);

    Integer returnConfirm(String id);
}
